package com.lanou3g.ptp.achievement.mapper;

import com.lanou3g.ptp.entity.Comment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CommentMapper {
    //添加
    void insert(Comment comment);

    //删除
    void delete(@Param("diaryId") Long diaryId, @Param("id") Long id);

    //按日志id查询
    List<Comment> find(Long id);

}
